<template>
  <div class="menu-wrap">
    <div class="back" @click="hideMenu">
      <van-icon name="arrow-left" size="26px" />
    </div>
    <section class="header">
      <div class="avater">
        <img src="https://ts1.cn.mm.bing.net/th/id/R-C.afa6f785a7ab8bbbbbefde617802ad5c?rik=CXdsGg6ecHqzjQ&riu=http%3a%2f%2fwww.kuaipng.com%2fUploads%2fwater%2ftext%2f2017%2f06-05%2fgoods_water_4817_698_698_.png&ehk=040ApIxJ3G%2b%2fKVxn%2bmxQCdrKg0vteoi2FNHcTsxfOlg%3d&risl=&pid=ImgRaw&r=0" alt="">

      </div>
      <p class="user">小红花</p>
    </section>
    <div class="setting">
      <div class="set-item">
        <van-icon name="gem-o" size="0.4rem"/>
        <span>个人主页</span>

      </div>
      <div class="set-item">
        <van-icon name="bullhorn-o" size="0.4rem"/>
        <span>通知</span>

      </div>
      <div class="set-item">
        <van-icon name="flower-o" size="0.4rem"/>
        <span>退出登录</span>

      </div>
    </div>
  </div>
</template>

<script setup>  
const emit = defineEmits(['hidden'])
const hideMenu = ()=>{
  emit('hidden',false)
}
</script>

<style lang="less" scoped>
.menu-wrap{
  background: #e8e6e8;
  padding: 1.4rem 1rem;
  box-sizing: border-box;
  .back{
    position: absolute;
    left: 15px;
    top: 15px;

  }
  .header{
    display: flex;
    flex-direction: column;
    align-items: center;
    
    .avater{
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      overflow: hidden;
      img{
        width: 100%;
        
      }
    }
    .user{
      color:#101010;
      font-size: 0.3733rem;
      margin-top: 10px;
    }
  }
  .setting{
    margin-top: 1rem;
    padding-left: 30%;
    .set-item{
      height: 1.2rem;
      line-height: 1.2rem;
      span{
        font-size: 0.4rem;
        color: #101010;
        margin-left: 20px;
      }

    }
  }
}
</style>